package cn.wolfcode.p2p.business.domain;

import cn.wolfcode.p2p.base.domain.BaseAuditDomain;
import lombok.Getter;
import lombok.Setter;


@Getter
@Setter
public class BidRequestAuditHistory extends BaseAuditDomain {

    //发标审核
    public static final int AUDITTYPE_PUBLISH = 0;
    //满标一审
    public static final int AUDITTYPE_AUDIT1 = 1;
    //满标二审
    public static final int AUDITTYPE_AUDIT2 = 2;
    //借款对象id
    private Long bidRequestId;
    //审核类型
    private Integer auditType;

    //审核类型
    public String getAuditTypeDisplay() {
        switch (auditType) {
            case AUDITTYPE_PUBLISH:
                return "发标前审核";
            case AUDITTYPE_AUDIT1:
                return "满标一审";
            case AUDITTYPE_AUDIT2:
                return "满标二审";
        }
        return "类型异常";
    }


}